package com.mxfcode.back.mapper;


import com.mxfcode.back.dto.ArticleDTO;
import com.mxfcode.back.dto.PlateDTO;
import com.mxfcode.entity.BBSArticle;
import com.mxfcode.entity.BBSPlate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BackArticleMapper {

    BBSArticle getArticleById(String id);

    List<ArticleDTO> getArticleList(String userId);

    int insertArticle(BBSArticle article);

    int updateArticle(BBSArticle article);

    int del(String id);
}